INPUTS
udata
- userdata to look for.
attr
- attribute to set.
val
- value to set attribute to.